package mvn12.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import mvn12.dao.UserDao;

@Service
public class UserServiceImpl {
	@Autowired  //按照类型进行注入，要求该类型只有一个对象
	private UserDao userdao;


	public UserDao getUserdao() {
		return userdao;
	}


	public void setUserdao(UserDao userdao) {
		this.userdao = userdao;
	}


	public void register() {
		System.out.println("注册用户：");
		userdao.addUser();
	}

}
